<template>
	<view class="page-fade-in" :style="{opacity: pageOpc}">
		<template v-if="pageOpc">
			<view class="content">
				<view class="flexWarpCenterColumn">
					<image src="../static/public/success-icon.png" class="success-icon"></image>
					<view class="order-status">下单成功</view>
					<view class="tips">请到店后点击“开始”按钮开灯</view>
					<view class="look-btn" @tap="goOrderDetails()">查看订单</view>
				</view>
			</view>
		</template>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				pageOpc:0,
				order_no:""
			}
		},
		onLoad(ops) {
			this.order_no = ops.order_no
		},
		onReady(){
			setTimeout(() => {
				this.pageOpc=1
			}, 100)
		},
		methods: {
			goOrderDetails() {
				uni.navigateTo({
					url: "/moduleA/orderDetails?order_no="+this.order_no
				})
			},
		}
	}
</script>

<style lang="scss">
	.success-icon{
		width: 144upx;
		height: 144upx;
		margin-top: 200upx;
	}
	.order-status{
		font-family: PingFang SC, PingFang SC;
		font-weight: 500;
		font-size: 34rpx;
		color: #FFFFFF;
		margin: 30upx 0;
	}
	.tips{
		font-family: PingFang SC, PingFang SC;
		font-weight: 500;
		font-size: 26rpx;
		color: #FFFFFF;
	}
	.look-btn{
		width: 345rpx;
		height: 96rpx;
		line-height: 96upx;
		text-align: center;
		background: #464F58;
		border-radius: 72rpx;
		font-family: PingFang SC, PingFang SC;
		font-weight: 600;
		font-size: 34rpx;
		color: #FFFFFF;
		margin-top: 88upx;
	}
</style>
